<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>送货单</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/print.css?v=202001010101">
</head>
<body>
<div class="pring-page">
    <div class="print-btns layui-form">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="print"><i class="fa fa-print"></i> 打印</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdf"><i class="fa fa-file-pdf-o"></i> 导出PDF</button>
    </div>
    <div class="main">
        <div class="page-break">
            <div id="conTempView">

            </div>
        </div>
    </div>
</div>
<script type="text/html" id="conTemp">
    <div class="head">
        <div class="title12">{{d.purchaseContract.sellerName}}</div>
        <div class="title12">{{d.purchaseContract.sellerBankAddress}}</div>
        <div class="title12" style="margin-bottom: 50px;">电话：<span style="min-width: 100px;display: inline-block">{{d.purchaseContract.sellerTel}}&nbsp;</span></div>
        <div class="title22">送货单</div>
        <hr/>
    </div>
    <table style="width: 100%">
        <tr>
            <td>Doc No： </td>
            <td>{{d.purchaseContract.customerOrderNo}}</td>
            <td>Date：</td>
            <td class="title12">{{d.purchaseContract.signingDate}}</td>
        </tr>
        <tr>
            <td>To：</td>
            <td>{{d.purchaseContract.buyerName}}</td>
            <td></td>
            <td></td>
        </tr>
    </table>
    <div class="printArea" style="margin-bottom: 8px">
        <table>
            <thead>
            <tr>
                <th>行号</th>
                <th>品名</th>
                <th>品牌</th>
                <th>型号</th>
                <th>数量</th>
                <th>单位</th>
                <th>净重(KG)</th>
                <th>毛重(KG)</th>
                <th>件数</th>
            </tr>
            </thead>
            <tbody>
            {{# $.each(d.members,function(i,o){}}
            <tr>
                <td style="text-align: center">{{i+1}}</td>
                <td>{{o.name}}</td>
                <td>{{isNotEmpty(o.brand) && !o.brand.endsWith('牌') ? o.brand + '牌' : o.brand}}</td>
                <td>{{o.model}}</td>
                <td style="text-align: right">{{formatCurrency(o.quantity)}}</td>
                <td style="text-align: center">{{o.unitName}}</td>
                <td style="text-align: right">{{o.netWeight}}</td>
                <td style="text-align: right">{{o.grossWeight}}</td>
                <td style="text-align: right">{{o.cartonNum}}</td>
            </tr>
            {{#});}}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="4">合计 Total：</td>
                <td style="text-align: right">{{formatCurrency(d.tquantity)}}</td>
                <td>&nbsp;</td>
                <td style="text-align: right">{{formatCurrency(d.tnetWeight)}}</td>
                <td style="text-align: right">{{formatCurrency(d.tgrossWeight)}}</td>
                <td style="text-align: right">{{formatCurrency(d.packNo)}}</td>
            </tr>
            </tfoot>
        </table>
    </div>
    <div style="position: absolute;width: 98%;overflow: hidden;height: 200px;margin-top: -10px">
        <table style="width: 100%;position: inherit;z-index: 10">
            <tr>
                <td height="60" width="50%">
                    <div style="float:left">送货单位：</div>
                    <div style="float:left">{{d.purchaseContract.sellerName}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">收货单位：</div>
                    <div style="float:left">{{d.purchaseContract.buyerName}}</div>
                </td>
            </tr>
            <tr>
                <td height="20" width="50%">
                    <div style="float:left">盖章：</div>
                    <div style="float:left"></div>
                </td>
                <td width="50%">
                    <div style="float:left">盖章：</div>
                    <div style="float:left"></div>
                </td>
            </tr>
            <tr>
                <td height="20" width="50%">
                    <div style="float:left">经手人：</div>
                    <div style="float:left"></div>
                </td>
                <td width="50%">
                    <div style="float:left">经手人：</div>
                    <div style="float:left"></div>
                </td>
            </tr>
        </table>
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/finance/purchaseContract/print-delivery.js?v=202001010110"></script>
</body>
</html>